package dazuoye.管道过滤器风格;

import java.io.*;

/**
 * 输入操作
 */
public class InputOperation implements PipeLine {
    @Override
    public int getOrder() {
        return 0;
    }

    @Override
    public void execute() throws Exception {
        System.out.println("输入操作");
        BufferedReader reader = new BufferedReader(new FileReader("C:\\Users\\topto\\Desktop\\新建 Text Document.txt"));
        String s;
        while ((s = reader.readLine()) != null) {
            list.add(s);
        }
    }
}
